-- GENERATED SPELL FOR [Fetid Corpse] --


function spell0_1270(pUnit, Event) --@Contagion of Rot,n/a--
pUnit:FullCastSpellOnTarget(7102,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1270', 538, 1)
end

function Sorts_1270(pUnit, Event)
local choix_sorts_1270 = math.random(0, 0)
if choix_sorts_1270 == 0 then
pUnit:RegisterEvent('spell0_1270', 1, 1)
end
end

function mob1270_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1270', math.random(1500, 3000), 1)
end

function mob1270_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1270_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1270_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1270, 1, 'mob1270_Action')
RegisterUnitEvent(1270, 2, 'mob1270_Leave')
RegisterUnitEvent(1270, 3, 'mob1270_Kill')
RegisterUnitEvent(1270, 4, 'mob1270_Die')
